import ReactDOM from "react-dom/client";
import { BrowserRouter } from "react-router-dom";
import { ConfigProvider, App as AntApp } from "antd";
import "virtual:svg-icons-register";
import "dayjs/locale/zh-cn";
import App from "./App";
import locale from "antd/locale/zh_CN";
import theme from "./config/theme";
import "@/styles/index.less";

ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
  // <React.StrictMode>
  <ConfigProvider locale={locale} /* theme={theme} */ /* componentSize={'middle'} */>
    <AntApp>
      <BrowserRouter>
        <App />
      </BrowserRouter>
    </AntApp>
  </ConfigProvider>
  // </React.StrictMode>
);
